home *** CD-ROM | disk | FTP | other *** search
/ Beginning Mac Programming / Beginning Mac Programming.bin / Open Me for REALbasic 3 / REALbasic 3.2 / Example Projects / Techniques / Example by Cortis Clark / Make your code faster! / Mandelbrot in C / Mandelbrot.h < prev    next >
Text File  |  2000-04-07  |  451b  |  20 lines

  1. typedef struct {
  2.     double x, y;
  3. } complex;
  4.  
  5. complex complexSquare (complex c);
  6. int iterate (complex zInit);
  7. //void mandelbrot (int cols, int rows, double rMin, double rMax,
  8. //                 double iMin, double iMax);
  9.  
  10. void mandelbrot (int cols, int rows, float rMin, float rMax,
  11.                  float iMin, float iMax);                
  12.                  
  13. const int kUpperLeft = 50;
  14. const int kMaxScreenX = 400, kMaxScreenY = 400;
  15.  
  16.  
  17.  
  18. #define MAX 256
  19.  
  20.